blob: 81c66d54c305fb60f8ff3e345d5c535412e74ac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
@file:Suppress("unused")
import org.w3c.dom.url.URLSearchParams
import react.Props
import react.State
/**
* A class that lives inside the root package
*/
class RootPackageClass {
val description = "I do live in the root package!"
}
// sample method that uses classes from dom and react, should compile
fun URLSearchParams.react(props: Props, state: State) {}
fun test(list: MutableList<Int>) = "list"
@JsModule("is-sorted")
@JsNonModule
external fun <T> sorted(a: Array<T>): Boolean
|