Skip to content

Commit

Permalink
JSC. Add simple applications (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Nov 3, 2024
1 parent 5950423 commit e71f85c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package web.events

open external class Event(
type: String,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package web.messaging

import web.events.Event

open external class MessageEvent(
type: String,
): Event
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package wrappers.example

import web.events.Event
import web.messaging.MessageEvent

fun main() {
val event: Any = MessageEvent("data")
println(event is Event)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package wrappers.example

import web.events.Event
import web.messaging.MessageEvent

fun main() {
val event: Any = MessageEvent("data")
println(event is Event)
}

0 comments on commit e71f85c

Please sign in to comment.