summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorCsaba Hruska <csaba.hruska@gmail.com>2016-11-10 15:36:43 +0100
committerCsaba Hruska <csaba.hruska@gmail.com>2016-11-10 15:37:05 +0100
commit6a1e350ea1cc64c18f76a924eb206b493be031fe (patch)
tree0b42246390b9af4ae7db9c3eef642759e98cfc1d /testdata
parent6e11b520ced5d5cc11afc1780f420817d5af9ccb (diff)
add test case for pattern type annotation
Diffstat (limited to 'testdata')
-rw-r--r--testdata/language-features/pattern/patternTyAnnot01.lc4
-rw-r--r--testdata/language-features/pattern/patternTyAnnot01.out47
2 files changed, 51 insertions, 0 deletions
diff --git a/testdata/language-features/pattern/patternTyAnnot01.lc b/testdata/language-features/pattern/patternTyAnnot01.lc
new file mode 100644
index 00000000..d4c4d01b
--- /dev/null
+++ b/testdata/language-features/pattern/patternTyAnnot01.lc
@@ -0,0 +1,4 @@
1{-# LANGUAGE NoImplicitPrelude #-}
2import Internals
3
4fun1 = \((x,uv::Float) :: (Float,Float)) -> ((x))
diff --git a/testdata/language-features/pattern/patternTyAnnot01.out b/testdata/language-features/pattern/patternTyAnnot01.out
new file mode 100644
index 00000000..bb03e3b6
--- /dev/null
+++ b/testdata/language-features/pattern/patternTyAnnot01.out
@@ -0,0 +1,47 @@
1main is not found
2------------ desugared source code
3fun1
4 = _lhs
5 fun1
6 (_rhs
7 \(a :: (Float, Float)) -> hlistConsCase
8 _
9 (\(b :: _) (c :: _) -> hlistConsCase
10 _
11 (\(d :: _) (e :: _) -> let f = d :: Float in hlistNilCase _ ((b)) e)
12 c)
13 a)
14------------ core code
15fun1 :: (Float, Float) -> ((Float))
16fun1
17 = _rhs
18 \a -> hlistConsCase
19 'Float
20 ['Float]
21 ' (('Float))
22 (\b c -> hlistConsCase
23 'Float
24 []
25 ' (('Float))
26 (\_ d -> hlistNilCase ' (('Float)) ((b)) d)
27 c)
28 a
29------------ tooltips
304:1-4:5
31 (Float, Float) -> ((Float))
324:17-4:22
33 Type
344:17-4:50
35 ((_c))
364:27-4:40
37 Type
384:28-4:33
39 Type
404:28-4:39
41 [Type]
424:34-4:39
43 Type | [Type]
444:45-4:50
45 ((_j))
464:47-4:48
47 _m \ No newline at end of file