Making compiler exit codes type safe. Fixes the problem with wrong command-line argument usage being missed by the IDE
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// KT-1647 Pattern matching doesn't work with generics
|
||||
|
||||
open class Abs
|
||||
class Bar : Abs()
|
||||
|
||||
fun <F : Abs> patternMatchingAndGenerics(arg : F) : String {
|
||||
if(arg is Bar){
|
||||
return "Bar";
|
||||
}
|
||||
return "else";
|
||||
}
|
||||
Reference in New Issue
Block a user