From 9b2115558b0146979503a40cb8fbe5722ba262ab Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Wed, 12 Sep 2018 12:00:01 -0500 Subject: Test cases for #6969 #7346 #7581 --- tests/seq/t7346.nim | 10 ++++++++++ tests/types/t6969.nim | 10 ++++++++++ tests/types/t7581.nim | 1 + 3 files changed, 21 insertions(+) create mode 100644 tests/seq/t7346.nim create mode 100644 tests/types/t6969.nim create mode 100644 tests/types/t7581.nim (limited to 'tests') diff --git a/tests/seq/t7346.nim b/tests/seq/t7346.nim new file mode 100644 index 000000000..ef2fd5b79 --- /dev/null +++ b/tests/seq/t7346.nim @@ -0,0 +1,10 @@ +when not defined(nimNewRuntime): + {.error: "This bug could only be reproduced with --newruntime".} + +type + Obj = object + a: int + +proc `=`(a: var Obj, b: Obj) = discard + +let a: seq[Obj] = @[] \ No newline at end of file diff --git a/tests/types/t6969.nim b/tests/types/t6969.nim new file mode 100644 index 000000000..d6ce5e62a --- /dev/null +++ b/tests/types/t6969.nim @@ -0,0 +1,10 @@ +discard """ +errormsg: "invalid type: 'object' for var" +line: 6 +""" + +var a: object a: int +# or +var b: ref object a: int +# or +var c: ptr object a: int \ No newline at end of file diff --git a/tests/types/t7581.nim b/tests/types/t7581.nim new file mode 100644 index 000000000..796f30271 --- /dev/null +++ b/tests/types/t7581.nim @@ -0,0 +1 @@ +discard int -1 \ No newline at end of file -- cgit 1.4.1-2-gfad0 acidbong/suckless/dwm/refs/?id=ffb757a532d79ac209ade8e6c38952514edeac7b'>refs log tree commit diff stats
path: root/patches/6-focusurgent-20160831-56a31dc.diff
blob: 23a0858f3cf2973656c2e8703b8b7d1af06b2bc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55