mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
Reorganized SAM-related test data.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class Super {
|
||||
public String lastCalled = null;
|
||||
|
||||
void foo(Runnable r) {
|
||||
lastCalled = "super";
|
||||
}
|
||||
}
|
||||
|
||||
class Sub extends Super {
|
||||
void foo(jet.Function0<jet.Unit> r) {
|
||||
lastCalled = "sub";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user