[fine] Conditionals produce alternates (yikes!)
This commit is contained in:
parent
8b9a69b898
commit
b43947b6f1
6 changed files with 35 additions and 44 deletions
|
|
@ -1,4 +1,4 @@
|
|||
if (if false { true }) { 32 } else { 23 }
|
||||
|
||||
// @expect-errors:
|
||||
// | 1:4: the type of the 'then' branch ('bool') must match the type of the 'else' branch ('nothing')
|
||||
// | 1:3: this condition produces 'nothing or bool', but must produce bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue