Created
July 14, 2012 08:28
-
-
Save vasily-kirichenko/3110045 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person | |
{ | |
public Name: string; | |
public Age: int; | |
public this(requires (name != null && name.Length > 0) name: string, | |
requires (age > 0) age: int) | |
{ | |
Name = name; | |
Age = age; | |
} | |
} | |
def person = Person("", 30); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment