From af062bff8f670de6a0c4fe7be797487ba124d811 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 29 Mar 2023 18:00:34 -0700 Subject: Fix IRArrayType emit logic. (#2754) * Fix IRArrayType emit logic. * Fix test. * Fix ast constant folding. --------- Co-authored-by: Yong He --- tests/diagnostics/gh-1374.slang.expected | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/diagnostics') diff --git a/tests/diagnostics/gh-1374.slang.expected b/tests/diagnostics/gh-1374.slang.expected index f1ae007b5..aafdc409f 100644 --- a/tests/diagnostics/gh-1374.slang.expected +++ b/tests/diagnostics/gh-1374.slang.expected @@ -9,6 +9,9 @@ tests/diagnostics/gh-1374.slang(11): error 39999: the initial-value expression f tests/diagnostics/gh-1374.slang(14): error 39999: the initial-value expression for variable 'kB' depends on the value of the variable itself static const int kB = kA; ^~ +tests/diagnostics/gh-1374.slang(13): error 39999: the initial-value expression for variable 'kA' depends on the value of the variable itself + static const int kA = kB; + ^~ } standard output = { } -- cgit v1.2.3