3d8d92c7d3
- test data files renamed from *.jet to *.kt
11 lines
217 B
Kotlin
Vendored
11 lines
217 B
Kotlin
Vendored
// 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";
|
|
} |