-
-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 4269 - Regression(2.031): invalid type accepted if evaluated wh…
…ile errors are gagged
- Loading branch information
1 parent
7cd2d8b
commit 75ccf8c
Showing
7 changed files
with
83 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,7 @@ | ||
| static if(is(typeof(X5.init))) {} | ||
| typedef Y X5; | ||
| enum bool WWW = is(typeof(A.x)); | ||
|
|
||
| interface A { | ||
| B blah; | ||
| void foo(B b){} | ||
| } | ||
|
|
||
| void main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| enum bool WWW = is(typeof(A.x)); | ||
|
|
||
| static if(is(typeof(X16))) {} | ||
| alias X16 X16; | ||
| struct A { | ||
| B blah; | ||
| void foo(B b){} | ||
| } | ||
|
|
||
| void main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| enum bool WWW = is(typeof(A.x)); | ||
|
|
||
| int[2] d; | ||
| static if(is(typeof(Xg.init))) {} | ||
| alias d[1] Xg; | ||
| class A { | ||
| B blah; | ||
| void foo(B b){} | ||
| } | ||
|
|
||
| void main() {} |
75ccf8cThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case you haven't noticed yet, this commit looks to have broken every platform in one of the dmd tests:
../src/dmd -m32 -Irunnable -d -odtest_results/runnable -oftest_results/runnable/circular_0 runnable/circular.d runnable/imports/circularA.d
runnable/circular.d(11): Error: typedef imports.circularA.A.Tclass circular definition
runnable/circular.d(11): Error: typedef imports.circularA.A.Tclass circular definition
runnable/imports/circularA.d(5): Error: class imports.circularA.A is forward referenced when looking for 'bclass'
runnable/circular.d(14): Error: typedef imports.circularA.A.Tstruct circular definition
runnable/circular.d(14): Error: typedef imports.circularA.A.Tstruct circular definition
75ccf8cThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! Will fix.
75ccf8cThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This replaced three test cases I introduced... was this intentional?
75ccf8cThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.