FIR: add proper receiver check for protected visibility #KT-48378 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
1c1b9547c1
commit
08e498f1f2
+1
-1
@@ -20,6 +20,6 @@ public class AppServiceModule : AbstractModule<String>() {
|
||||
inline fun <reified T> AbstractModule<Int>.bind() {
|
||||
val x = <!PROTECTED_CALL_FROM_PUBLIC_INLINE!>bind<!>(javaClass<T>())
|
||||
|
||||
x checkType { <!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>_<!><String>() } // check that Class receiver is used instead of extension one
|
||||
x checkType { _<String>() } // check that Class receiver is used instead of extension one
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user