Adds smaller code samples from Chapters 1-3 to the tester.

This commit is contained in:
Dominik Picheta 2018-05-04 15:44:36 +01:00
commit 9e86237855
11 changed files with 642 additions and 1 deletions

View file

@ -0,0 +1,16 @@
discard """
line: 16
errormsg: "type mismatch"
"""
type
Dog = object
name: string
Cat = object
name: string
let dog: Dog = Dog(name: "Fluffy")
let cat: Cat = Cat(name: "Fluffy")
echo(dog == cat)