File tree 6 files changed +33
-5
lines changed
6 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,4 @@ root = true
3
3
indent_style = space
4
4
indent_size = 4
5
5
end_of_line = crlf
6
- charset = utf-8
7
- trim_trailing_whitespace = true
6
+ charset = utf-8
Original file line number Diff line number Diff line change
1
+ package {
2
+ public class Issue27 {
3
+ public function Issue27 (condition :Boolean ) {
4
+ if (condition) trace (1 );
5
+
6
+ //some comment
7
+ trace (2 );
8
+ }
9
+ }
10
+ }
Original file line number Diff line number Diff line change
1
+
2
+ class Issue27
3
+ {
4
+ public function new (condition : Bool )
5
+ {
6
+ if (condition )
7
+ {
8
+ trace (1 );
9
+ }
10
+
11
+ // some comment
12
+ trace (2 );
13
+ }
14
+ }
Original file line number Diff line number Diff line change 1
1
package {
2
- public class Issue303 {
3
- public function Issue303 () {}
2
+ public class Issue314 {
3
+ public function Issue314 () {}
4
4
public function hide1 (param1 :* ) : *
5
5
{
6
6
this [ param1] = false ;
Original file line number Diff line number Diff line change 1
1
2
- class Issue303
2
+ class Issue314
3
3
{
4
4
public function new ()
5
5
{
Original file line number Diff line number Diff line change @@ -566,6 +566,11 @@ class AS3HXTest {
566
566
generate (" Issue314.as" , " Issue314.hx" );
567
567
}
568
568
569
+ @Test (" https://github.com/HaxeFoundation/as3hx/issues/27" )
570
+ public function issue27 () {
571
+ generate (" Issue27.as" , " Issue27.hx" );
572
+ }
573
+
569
574
function generate (as3FileName : String , expectedHaxeFileName : String ) {
570
575
var issuesDirectory = FileSystem .absolutePath (" test/issues" );
571
576
var generatedDirectoryPath = ' $issuesDirectory /generated' ;
You can’t perform that action at this time.
0 commit comments