Add class building helpers.
This commit is contained in:
12
tests/Run.hx
12
tests/Run.hx
@@ -5,14 +5,18 @@ package ;
|
||||
import haxe.unit.TestRunner;
|
||||
import neko.Lib;
|
||||
#else
|
||||
import tink.macro.Member;
|
||||
import tink.macro.Constructor;
|
||||
import tink.macro.ClassBuilder;
|
||||
using tink.macro.Tools;
|
||||
#end
|
||||
|
||||
class Run {
|
||||
#if !macro
|
||||
static var tests:Array<TestCase> = [];
|
||||
static function main() {
|
||||
test();//it compiles!!!
|
||||
}
|
||||
static var tests:Array<TestCase> = [];
|
||||
static function main() {
|
||||
test();//it compiles!!!
|
||||
}
|
||||
#end
|
||||
macro static function test() {
|
||||
return macro null;
|
||||
|
Reference in New Issue
Block a user