Fix module naming
This commit is contained in:
parent
5850977643
commit
ca83d7a81e
3 changed files with 8 additions and 8 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
author = "CodeDoes"
|
||||
description = "OOP macro"
|
||||
version = "0.2.0"
|
||||
author = "Joey Yakimowich-Payne"
|
||||
description = "Nim extensions"
|
||||
license = "MIT"
|
||||
srcDir = "src"
|
||||
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
import oop_macro
|
||||
|
||||
import extensions/oop_macro
|
||||
|
||||
import strutils
|
||||
|
||||
var
|
||||
var
|
||||
output = ""
|
||||
|
||||
class Animal of RootObj:
|
||||
|
|
@ -10,7 +10,7 @@ class Animal of RootObj:
|
|||
name: string
|
||||
age: int
|
||||
|
||||
|
||||
|
||||
method init*(name: string, age: int){.base.}=
|
||||
self.name = name
|
||||
self.age = age
|
||||
|
|
@ -63,4 +63,4 @@ echo check
|
|||
echo "####"
|
||||
echo output
|
||||
echo "####"
|
||||
doAssert(output==check,"""echo matches""")
|
||||
doAssert(output==check,"""echo matches""")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue