Correct handling of empty super type list while adding an entry #KT-12011 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Let the anonymous object implement interface 'Runnable'" "true"
|
||||
|
||||
fun foo(r: Runnable) {}
|
||||
|
||||
fun bar() {
|
||||
foo(<caret>object: {})
|
||||
}
|
||||
|
||||
interface Runnable
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Let the anonymous object implement interface 'Runnable'" "true"
|
||||
|
||||
fun foo(r: Runnable) {}
|
||||
|
||||
fun bar() {
|
||||
foo(object: Runnable {})
|
||||
}
|
||||
|
||||
interface Runnable
|
||||
Reference in New Issue
Block a user