Fix module naming

This commit is contained in:
Joey Yakimowich-Payne 2018-06-21 18:33:19 +09:00
commit ca83d7a81e
3 changed files with 8 additions and 8 deletions

View file

@ -1,8 +1,8 @@
# Package # Package
version = "0.1.0" version = "0.2.0"
author = "CodeDoes" author = "Joey Yakimowich-Payne"
description = "OOP macro" description = "Nim extensions"
license = "MIT" license = "MIT"
srcDir = "src" srcDir = "src"

View file

@ -1,8 +1,8 @@
import oop_macro import extensions/oop_macro
import strutils import strutils
var var
output = "" output = ""
class Animal of RootObj: class Animal of RootObj:
@ -10,7 +10,7 @@ class Animal of RootObj:
name: string name: string
age: int age: int
method init*(name: string, age: int){.base.}= method init*(name: string, age: int){.base.}=
self.name = name self.name = name
self.age = age self.age = age
@ -63,4 +63,4 @@ echo check
echo "####" echo "####"
echo output echo output
echo "####" echo "####"
doAssert(output==check,"""echo matches""") doAssert(output==check,"""echo matches""")