deprecating types after colon
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
fun <T> checkSubtype(t: T) = t
|
||||
|
||||
fun test() {
|
||||
1 : Byte
|
||||
1 : Int
|
||||
<error>1</error> : Double
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user