-
-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
see #9585
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package unit.issues; | ||
|
||
using StringTools; | ||
|
||
function getFloat():Dynamic { | ||
return 12.34; | ||
} | ||
|
||
function getInt():Dynamic { | ||
return 666; | ||
} | ||
|
||
function getBool():Dynamic { | ||
return false; | ||
} | ||
|
||
function getArray():Dynamic { | ||
return [1, 2, 3]; | ||
} | ||
|
||
function getObject():Dynamic { | ||
return {x: 0}; | ||
} | ||
|
||
class Issue9585 extends Test { | ||
function test() { | ||
var value1 /* :Dynamic */ = getFloat(); | ||
var value2 /* :Dynamic */ = getInt(); | ||
var value3 /* :Dynamic */ = getBool(); | ||
var value4 /* :Dynamic */ = getArray(); | ||
var value5 /* :Dynamic */ = getObject(); | ||
|
||
var s:String = "Results: " + value1 + ", " + value2 + ", " + value3 + ", " + value4 + ", " + value5; | ||
t(s.startsWith("Results: 12.34, 666, false, [1,2,3]")); | ||
} | ||
} |