blob: 312c194d9f7e21af50d43f7d72a0c3896f517522 [file] [log] [blame]
fun <T> checkSubtype(t: T) = t
fun test() {
checkSubtype<Byte>(1)
checkSubtype<Int>(1)
checkSubtype<Double>(<error>1</error>)
1 <warning>as</warning> Byte
1 <warning>as Int</warning>
1 <warning>as</warning> Double
}