-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue 10277 - Incorrect error file and line on redeclaration of
TypeInfo
- Loading branch information
Showing
9 changed files
with
116 additions
and
69 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module fail10227; | ||
|
||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/imports/fail10277.d(3): Error: class TypeInfo only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(4): Error: class TypeInfo_Class only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(5): Error: class TypeInfo_Interface only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(6): Error: class TypeInfo_Struct only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(7): Error: class TypeInfo_Typedef only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(8): Error: class TypeInfo_Pointer only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(9): Error: class TypeInfo_Array only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(10): Error: class TypeInfo_AssociativeArray only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(11): Error: class TypeInfo_Enum only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(12): Error: class TypeInfo_Function only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(13): Error: class TypeInfo_Delegate only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(14): Error: class TypeInfo_Tuple only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(15): Error: class TypeInfo_Const only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(16): Error: class TypeInfo_Invariant only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(17): Error: class TypeInfo_Shared only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(18): Error: class TypeInfo_Inout only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(19): Error: class TypeInfo_Vector only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(20): Error: class Object only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(21): Error: class Throwable only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(22): Error: class Exception only object.d can define this reserved class name | ||
fail_compilation/imports/fail10277.d(23): Error: class Error only object.d can define this reserved class name | ||
--- | ||
*/ | ||
|
||
import imports.fail10277; |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module imports.fail10277; | ||
|
||
class TypeInfo { } | ||
class TypeInfo_Class { } | ||
class TypeInfo_Interface { } | ||
class TypeInfo_Struct { } | ||
class TypeInfo_Typedef { } | ||
class TypeInfo_Pointer { } | ||
class TypeInfo_Array { } | ||
class TypeInfo_AssociativeArray { } | ||
class TypeInfo_Enum { } | ||
class TypeInfo_Function { } | ||
class TypeInfo_Delegate { } | ||
class TypeInfo_Tuple { } | ||
class TypeInfo_Const { } | ||
class TypeInfo_Invariant { } | ||
class TypeInfo_Shared { } | ||
class TypeInfo_Inout { } | ||
class TypeInfo_Vector { } | ||
class Object { } | ||
class Throwable { } | ||
class Exception { } | ||
class Error { } |