diff --git a/js/js.libraries/src/core/annotations.kt b/js/js.libraries/src/core/annotations.kt index 993e6b88cf3..de12b11cab0 100644 --- a/js/js.libraries/src/core/annotations.kt +++ b/js/js.libraries/src/core/annotations.kt @@ -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) \ No newline at end of file +annotation class JsName(val name: String) diff --git a/js/js.translator/testData/box/native/library.kt b/js/js.translator/testData/box/native/library.kt index 9812a4ecc35..d89db0ec000 100644 --- a/js/js.translator/testData/box/native/library.kt +++ b/js/js.translator/testData/box/native/library.kt @@ -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" -} \ No newline at end of file +}