Skip to content

Commit

Permalink
testcase for identity fn #53
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhar1989 committed May 1, 2016
1 parent 6d1ffee commit 3ddf9ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/compiler-tests/pass-identityfn.jsjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
val identity = /\(x) => x;

print(identity(10));
print(identity(true));
print(identity("hello"));
3 changes: 3 additions & 0 deletions test/compiler-tests/pass-identityfn.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
10
true
hello

0 comments on commit 3ddf9ca

Please sign in to comment.