Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4452 from 9rnsr/fix14235
[REG2.066] Issue 14235 - full-qualified template instantiation misses its error location
- Loading branch information
1 parent
18f4c44
commit 643ca3f
Showing
3 changed files
with
25 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/diag14235.d(11): Error: template identifier 'Undefined' is not a member of 'module imports.a14235' | ||
fail_compilation/diag14235.d(12): Error: template identifier 'Something' is not a member of 'module imports.a14235', did you mean 'struct SomeThing(T...)'? | ||
fail_compilation/diag14235.d(13): Error: imports.a14235.SomeClass is not a template, it is a class | ||
--- | ||
*/ | ||
|
||
import imports.a14235; | ||
imports.a14235.Undefined!Object a; | ||
imports.a14235.Something!Object b; | ||
imports.a14235.SomeClass!Object c; |
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,7 @@ | ||
module imports.a14235; | ||
|
||
struct SomeThing(T...) | ||
{ | ||
} | ||
|
||
class SomeClass {} |