Check return type of internal @PublishedApi functions in Explicit API mode

#KT-38981 Fixed
This commit is contained in:
Leonid Startsev
2020-09-08 14:24:00 +03:00
parent a9972913a6
commit 5f0e7c3c3f
3 changed files with 17 additions and 2 deletions
@@ -0,0 +1,7 @@
// SKIP_TXT
// WITH_RUNTIME
public class A {
@PublishedApi
internal fun <!NO_EXPLICIT_RETURN_TYPE_IN_API_MODE!>foo<!>() = 1
}