aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2014-11-03 15:17:51 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-11-03 15:17:51 +0100
commit09d5673de8d3a9ddd50c3c221992ede6117e16bf (patch)
treedf83ef063ea6ab83a8a4f1638e0140d756faa487 /tests/pos
parent97a37320b74efe203d57a0a744efa8e0c7ecec47 (diff)
parent474b2aeb608ebbdeb639ba081f413f49459b3eff (diff)
downloaddotty-09d5673de8d3a9ddd50c3c221992ede6117e16bf.tar.gz
dotty-09d5673de8d3a9ddd50c3c221992ede6117e16bf.tar.bz2
dotty-09d5673de8d3a9ddd50c3c221992ede6117e16bf.zip
Merge commits '474b2ae' and '46eb5ea' from #201 into umaster
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/bynamefuns.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pos/bynamefuns.scala b/tests/pos/bynamefuns.scala
new file mode 100644
index 000000000..5aa1df38d
--- /dev/null
+++ b/tests/pos/bynamefuns.scala
@@ -0,0 +1,15 @@
+object Test {
+
+ type LF = (=> Int) => Int
+
+ def f(x: => Int) = x * x
+
+ val x: LF = f
+
+ def g = 3
+
+ f(11)
+ x(g)
+ x(11)
+
+}