Added tests for compiling Java against TraitImpl and extension members.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package test;
|
||||
|
||||
class GenericArray {
|
||||
{
|
||||
TestPackage.noParam("");
|
||||
|
||||
TestPackage.param("", "");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
fun String.noParam() {
|
||||
}
|
||||
|
||||
fun String.param(p: String) {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
abstract class TraitImpl implements Trait {
|
||||
{
|
||||
Trait$$TImpl.simple(this);
|
||||
|
||||
Trait$$TImpl.generic(this, new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
trait Trait {
|
||||
fun simple() {
|
||||
}
|
||||
|
||||
fun generic(list: List<String>) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user