diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2016-11-10 15:36:43 +0100 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2016-11-10 15:37:05 +0100 |
commit | 6a1e350ea1cc64c18f76a924eb206b493be031fe (patch) | |
tree | 0b42246390b9af4ae7db9c3eef642759e98cfc1d /testdata | |
parent | 6e11b520ced5d5cc11afc1780f420817d5af9ccb (diff) |
add test case for pattern type annotation
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/language-features/pattern/patternTyAnnot01.lc | 4 | ||||
-rw-r--r-- | testdata/language-features/pattern/patternTyAnnot01.out | 47 |
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 #-} | ||
2 | import Internals | ||
3 | |||
4 | fun1 = \((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 @@ | |||
1 | main is not found | ||
2 | ------------ desugared source code | ||
3 | fun1 | ||
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 | ||
15 | fun1 :: (Float, Float) -> ((Float)) | ||
16 | fun1 | ||
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 | ||
30 | 4:1-4:5 | ||
31 | (Float, Float) -> ((Float)) | ||
32 | 4:17-4:22 | ||
33 | Type | ||
34 | 4:17-4:50 | ||
35 | ((_c)) | ||
36 | 4:27-4:40 | ||
37 | Type | ||
38 | 4:28-4:33 | ||
39 | Type | ||
40 | 4:28-4:39 | ||
41 | [Type] | ||
42 | 4:34-4:39 | ||
43 | Type | [Type] | ||
44 | 4:45-4:50 | ||
45 | ((_j)) | ||
46 | 4:47-4:48 | ||
47 | _m \ No newline at end of file | ||