This commit is contained in:
flywind 2021-04-06 22:20:01 +08:00 • committed by GitHub
commit 7bfb9f0002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 60 additions and 75 deletions

View file

@ -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

View file

@ -1,6 +1,5 @@
discard """
errormsg: "cannot instantiate B"
line: 20
nimout: '''
got: <typedesc[string]>
but expected: <T: A>

View file

@ -1,6 +1,5 @@
discard """
errormsg: "cannot instantiate B"
line: 14
nimout: '''
got: <typedesc[int]>
but expected: <T: string or float>

View file

@ -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

View file

@ -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