mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
17 lines
261 B
Nim
17 lines
261 B
Nim
discard """
|
|
cmd: "nim check --hints:off $file"
|
|
errormsg: ""
|
|
nimout:
|
|
'''
|
|
tdefaultfieldscheck.nim(14, 17) Error: type mismatch: got <string> but expected 'int'
|
|
'''
|
|
"""
|
|
|
|
|
|
type
|
|
Date* = object
|
|
goal: float = 7
|
|
name: int = "string"
|
|
|
|
echo default(Date)
|