diff options
author | metagn <metagngn@gmail.com> | 2023-05-11 11:23:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 10:23:52 +0200 |
commit | 02be212daee78e3fca9f6b9524c4f3b221e552f3 (patch) | |
tree | 72ae4923ab997d476864d971cd5589143ed71dc8 /tests/errmsgs | |
parent | 3a08e2e6ace20f086ba24360c7139852a75b93b2 (diff) | |
download | Nim-02be212daee78e3fca9f6b9524c4f3b221e552f3.tar.gz |
clean up SOME pending/xxx/issue link comments (#21826)
* clean up SOME pending/xxx/issue link comments * great
Diffstat (limited to 'tests/errmsgs')
-rw-r--r-- | tests/errmsgs/t8794.nim | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/tests/errmsgs/t8794.nim b/tests/errmsgs/t8794.nim index 9db54a9c7..36f05dbad 100644 --- a/tests/errmsgs/t8794.nim +++ b/tests/errmsgs/t8794.nim @@ -1,33 +1,16 @@ discard """ cmd: "nim check $options $file" - errormsg: "" - nimout: ''' -t8794.nim(39, 27) Error: undeclared field: 'a3' for type m8794.Foo3 [type declared in m8794.nim(1, 6)] -''' """ - - - - - - - - - - - -## line 20 - ## issue #8794 import m8794 -when false: # pending https://github.com/nim-lang/Nim/pull/10091 add this - type Foo = object - a1: int +type Foo = object + a1: int - discard Foo().a2 +discard Foo().a2 #[tt.Error + ^ undeclared field: 'a2' for type t8794.Foo [type declared in t8794.nim(9, 6)]]# type Foo3b = Foo3 var x2: Foo3b @@ -36,4 +19,5 @@ proc getFun[T](): T = var a: T a -discard getFun[type(x2)]().a3 +discard getFun[type(x2)]().a3 #[tt.Error + ^ undeclared field: 'a3' for type m8794.Foo3 [type declared in m8794.nim(1, 6)]]# |