blob: 00c354167483df8863a62ce9be7765b5b7ec7662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std
/*
should fail to compile after infering that a is a float, b is a char, and
the types are incompatible.
*/
const main = {
var a
var b
a = 1.0
b = 'a'
a = b
}
|