mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
20 lines
227 B
Kotlin
Vendored
20 lines
227 B
Kotlin
Vendored
// FILE: test/Foo.java
|
|
|
|
package test;
|
|
|
|
public class Foo<T extends Number> {
|
|
public Foo(T number) {}
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
import test.Foo
|
|
|
|
class Subclass : Foo<Int>(42) {
|
|
}
|
|
|
|
fun box(): String {
|
|
Subclass()
|
|
return "OK"
|
|
}
|