Logo
Explore Help
Register Sign In
azalea/kotlin-fork
1
0
Fork 0
You've already forked kotlin-fork
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
a8fef3a3852fd560ac28c4e65c277d39a72274eb
kotlin-fork/libraries/examples/js-example/src/main/kotlin/sample/Hello.kt
T
James Strachan 4921aeafc3 refactored the maven plugin to use the vanilla K2JSCompiler directly and avoid using the K2JVMCompiler when generating JS code; also included a default LibrarySourceConfig which detects JS library code on the classpath which works nicer in maven/ant style worlds where dependencies tend to be specified rather than file paths to zip files
2012-05-29 17:28:15 +01:00

14 lines
197 B
Kotlin
Raw Blame History

package sample
public fun main(args: Array<String>): Unit {
val hello = Hello()
hello.doSomething()
}
public class Hello {
var x = 0
fun doSomething(): Unit {
x++
}
}
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.26.1 Page: 15ms Template: 2ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API