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:
Andrey Breslav
2012-03-27 12:19:01 +04:00
parent 5c7ee4d870
commit 669126d635
5 changed files with 83 additions and 11 deletions
@@ -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";
}