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
|
# 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"
|
||||||
|
|
||||||
|
|
@ -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""")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue