mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
Merge remote-tracking branch 'upstream/stable' into merge_stable
This commit is contained in:
commit
2e1e544ac2
4 changed files with 20 additions and 2 deletions
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
@ -71,6 +71,7 @@ jobs:
|
|||
model: 32
|
||||
name: ${{ matrix.job_name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
continue-on-error: ${{ matrix.os == 'macos-13' }}
|
||||
timeout-minutes: 40
|
||||
env:
|
||||
# for ci/run.sh:
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
v2.107.0
|
||||
v2.107.1-rc.1
|
||||
|
|
|
@ -876,7 +876,7 @@ private extern(C++) final class StaticAAVisitor : SemanticTimeTransitiveVisitor
|
|||
hookFunc = new DotIdExp(aaExp.loc, hookFunc, Id.object);
|
||||
hookFunc = new DotIdExp(aaExp.loc, hookFunc, Id._aaAsStruct);
|
||||
auto arguments = new Expressions();
|
||||
arguments.push(aaExp.syntaxCopy());
|
||||
arguments.push(aaExp);
|
||||
Expression loweredExp = new CallExp(aaExp.loc, hookFunc, arguments);
|
||||
|
||||
sc = sc.startCTFE();
|
||||
|
|
|
@ -165,6 +165,22 @@ void testEnumInit()
|
|||
|
||||
/////////////////////////////////////////////
|
||||
|
||||
// https://issues.dlang.org/show_bug.cgi?id=24370
|
||||
immutable uint[3][string] test = [
|
||||
"oneTwoThree": [1,2,3],
|
||||
"fourFiveSix": [4,5,6],
|
||||
"sevenEightNine": [7,8,9],
|
||||
];
|
||||
|
||||
void testStaticArray()
|
||||
{
|
||||
assert(test["oneTwoThree"] == [1, 2, 3]);
|
||||
assert(test["fourFiveSix"] == [4, 5, 6]);
|
||||
assert(test["sevenEightNine"] == [7, 8, 9]);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
testSimple();
|
||||
|
@ -175,4 +191,5 @@ void main()
|
|||
testImmutable();
|
||||
testLocalStatic();
|
||||
testEnumInit();
|
||||
testStaticArray();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue