mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
Skip over duplicate '| null's on nullable types
This commit is contained in:
parent
7877661f35
commit
65c4acd2d4
@ -494,7 +494,7 @@ export class Parser extends DiagnosticEmitter {
|
||||
}
|
||||
}
|
||||
// ... | null
|
||||
if (tn.skip(Token.BAR)) {
|
||||
while (tn.skip(Token.BAR)) {
|
||||
if (tn.skip(Token.NULL)) {
|
||||
nullable = true;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user