Fix #2191: Error check for indexing reference containing unsize array.
This commit is contained in:
parent
2ac3c5b6d6
commit
b5f003d7a3
3 changed files with 20 additions and 6 deletions
|
|
@ -29,6 +29,7 @@ void f()
|
|||
bufType6 b;
|
||||
b.x.length();
|
||||
b4.b6.x.length();
|
||||
b[2]; // ERROR, can't index due to unsized array
|
||||
}
|
||||
|
||||
void main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue