KT-47939 fixes after review

This commit is contained in:
Dmitry Petrov
2021-11-30 10:55:55 +03:00
committed by TeamCityServer
parent 58f1504aaf
commit 50b0dae786
14 changed files with 126 additions and 80 deletions
@@ -1,5 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: +AllowKotlinFunInterfaceConstructorReference +ProhibitJavaSamInterfaceConstructorReference
// !LANGUAGE: +AllowKotlinFunInterfaceConstructorReference
fun interface Foo {
fun run()
@@ -1,5 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: -AllowKotlinFunInterfaceConstructorReference -ProhibitJavaSamInterfaceConstructorReference
// !LANGUAGE: -AllowKotlinFunInterfaceConstructorReference
fun interface Foo {
fun run()
@@ -7,4 +7,4 @@ fun interface Foo {
val x = ::<!FUN_INTERFACE_CONSTRUCTOR_REFERENCE!>Foo<!>
val y = Foo { }
val z = ::Runnable
val z = ::<!JAVA_SAM_INTERFACE_CONSTRUCTOR_REFERENCE!>Runnable<!>