Minor: add test for suppressed error.
This commit is contained in:
committed by
Dmitry Petrov
parent
3fa33b5969
commit
c4391ebce5
@@ -0,0 +1,9 @@
|
||||
class C {
|
||||
internal fun bar() {}
|
||||
}
|
||||
|
||||
inline fun C.foo() {
|
||||
@Suppress("NON_PUBLIC_CALL_FROM_PUBLIC_INLINE")
|
||||
bar()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
FILE /suppressedNonPublicCall.kt
|
||||
CLASS CLASS C
|
||||
CONSTRUCTOR public constructor C()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='C'
|
||||
FUN internal final fun bar(): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
FUN public inline fun C.foo(): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
CALL 'bar(): Unit' type=kotlin.Unit operator=null
|
||||
$this: $RECEIVER of 'foo() on C: Unit' type=C
|
||||
Reference in New Issue
Block a user