JS: change visibility to internal for library and marker annotations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2014 JetBrains s.r.o.
|
||||
* Copyright 2010-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -36,18 +36,16 @@ public annotation class nativeInvoke
|
||||
|
||||
@native
|
||||
@Target(CLASS, FUNCTION, PROPERTY)
|
||||
public annotation class library(public val name: String = "")
|
||||
internal annotation class library(public val name: String = "")
|
||||
|
||||
@native
|
||||
@Target(PROPERTY)
|
||||
public annotation class enumerable()
|
||||
|
||||
// TODO make it "internal" or "fake"
|
||||
@native
|
||||
@Target(CLASS)
|
||||
@Deprecated("Do not use this annotation: it is for internal use only")
|
||||
public annotation class marker
|
||||
internal annotation class marker
|
||||
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
annotation class JsName(val name: String)
|
||||
annotation class JsName(val name: String)
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
package foo
|
||||
|
||||
@library class A() {
|
||||
@@ -14,4 +15,4 @@ fun box(): String {
|
||||
a.f()
|
||||
a.f(2)
|
||||
return if (getResult()) "OK" else "fail"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user