mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
24 lines
651 B
Plaintext
24 lines
651 B
Plaintext
class Returns {
|
|
foreign static def implicitNull
|
|
|
|
foreign static def returnInt
|
|
foreign static def returnFloat
|
|
|
|
foreign static def returnTrue
|
|
foreign static def returnFalse
|
|
|
|
foreign static def returnString
|
|
foreign static def returnBytes
|
|
}
|
|
|
|
System.print(Returns.implicitNull == null) // expect: true
|
|
|
|
System.print(Returns.returnInt) // expect: 123456
|
|
System.print(Returns.returnFloat) // expect: 123.456
|
|
|
|
System.print(Returns.returnTrue) // expect: true
|
|
System.print(Returns.returnFalse) // expect: false
|
|
|
|
System.print(Returns.returnString) // expect: a string
|
|
System.print(Returns.returnBytes.bytes.toList) // expect: [97, 0, 98, 0, 99]
|