parent
aa4f18eff0
commit
7bfb9f0002
16 changed files with 60 additions and 75 deletions
|
|
@ -1,10 +1,9 @@
|
|||
discard """
|
||||
cmd: "nim c --hints:off $file"
|
||||
errormsg: "type mismatch: got <>"
|
||||
nimout: '''t6608.nim(14, 4) Error: type mismatch: got <>
|
||||
nimout: '''t6608.nim(13, 4) Error: type mismatch: got <>
|
||||
but expected one of:
|
||||
AcceptCB = proc (s: string){.closure.}'''
|
||||
line: 14
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
discard """
|
||||
errormsg: "cannot instantiate B"
|
||||
line: 20
|
||||
nimout: '''
|
||||
got: <typedesc[string]>
|
||||
but expected: <T: A>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
discard """
|
||||
errormsg: "cannot instantiate B"
|
||||
line: 14
|
||||
nimout: '''
|
||||
got: <typedesc[int]>
|
||||
but expected: <T: string or float>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <array[0..0, typedesc[int]]>"
|
||||
line: 22
|
||||
nimout: '''
|
||||
twrong_at_operator.nim(22, 30) Error: type mismatch: got <array[0..0, typedesc[int]]>
|
||||
twrong_at_operator.nim(21, 30) Error: type mismatch: got <array[0..0, typedesc[int]]>
|
||||
but expected one of:
|
||||
proc `@`[IDX, T](a: sink array[IDX, T]): seq[T]
|
||||
first type mismatch at position: 1
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
discard """
|
||||
errormsg: "in expression ' do:"
|
||||
nimout: '''
|
||||
twrongcolon.nim(11, 12) Error: in expression ' do:
|
||||
twrongcolon.nim(10, 12) Error: in expression ' do:
|
||||
890': identifier expected, but found ''
|
||||
'''
|
||||
|
||||
line: 11
|
||||
"""
|
||||
|
||||
var n: int : 890
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue