Make sure aliases are properly resolved
This commit is contained in:
parent
d4d8f40cda
commit
9c08819a0f
|
@ -519,6 +519,7 @@ do
|
||||||
if (lastSuffix !is null)
|
if (lastSuffix !is null)
|
||||||
{
|
{
|
||||||
assert(suffix !is null);
|
assert(suffix !is null);
|
||||||
|
typeSwap(currentSymbol);
|
||||||
suffix.type = currentSymbol;
|
suffix.type = currentSymbol;
|
||||||
suffix.ownType = false;
|
suffix.ownType = false;
|
||||||
symbol.type = lastSuffix;
|
symbol.type = lastSuffix;
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
identifiers
|
||||||
|
read_test f void read_test() stdin 38 void
|
|
@ -0,0 +1,12 @@
|
||||||
|
struct ReaderTest(bool LE)
|
||||||
|
{
|
||||||
|
void read_test(){}
|
||||||
|
}
|
||||||
|
alias ReaderTestBE = ReaderTest!true;
|
||||||
|
struct Test
|
||||||
|
{
|
||||||
|
void read(ReaderTestBE* reader)
|
||||||
|
{
|
||||||
|
reader.re
|
||||||
|
}
|
||||||
|
}
|
|
@ -12,6 +12,10 @@ function check () {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#echo "extra"
|
||||||
|
check file4 165 actual_extra_1 expected_extra_1
|
||||||
|
|
||||||
|
|
||||||
#echo "test1"
|
#echo "test1"
|
||||||
check file1 280 actual_1_1 expected_1_1
|
check file1 280 actual_1_1 expected_1_1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue