Make sure aliases are properly resolved

This commit is contained in:
ryuukk 2023-08-12 00:20:22 +02:00
parent d4d8f40cda
commit 9c08819a0f
4 changed files with 19 additions and 0 deletions

View File

@ -519,6 +519,7 @@ do
if (lastSuffix !is null)
{
assert(suffix !is null);
typeSwap(currentSymbol);
suffix.type = currentSymbol;
suffix.ownType = false;
symbol.type = lastSuffix;

View File

@ -0,0 +1,2 @@
identifiers
read_test f void read_test() stdin 38 void

View File

@ -0,0 +1,12 @@
struct ReaderTest(bool LE)
{
void read_test(){}
}
alias ReaderTestBE = ReaderTest!true;
struct Test
{
void read(ReaderTestBE* reader)
{
reader.re
}
}

View File

@ -12,6 +12,10 @@ function check () {
}
#echo "extra"
check file4 165 actual_extra_1 expected_extra_1
#echo "test1"
check file1 280 actual_1_1 expected_1_1