diff options
author | Andy Li <andy@onthewings.net> | 2014-08-17 17:01:29 +0800 |
---|---|---|
committer | Andy Li <andy@onthewings.net> | 2014-08-17 17:01:29 +0800 |
commit | 0d9f70215c44a27ea10e4759300464873b618a10 (patch) | |
tree | 71c73f08c7f3a04c179af63cd63f86636125bd51 /tests | |
parent | 750ca02ad15f5c6a8090e090f08c659748cfc592 (diff) | |
download | pygments-0d9f70215c44a27ea10e4759300464873b618a10.tar.gz |
HaxeLexer: macro class reification could have no class name.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/example.hx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/examplefiles/example.hx b/tests/examplefiles/example.hx index 381cf825..7584fc81 100644 --- a/tests/examplefiles/example.hx +++ b/tests/examplefiles/example.hx @@ -181,5 +181,12 @@ var c = macro class MyClass { var c = macro interface IClass {}; +//macro class could have no name... +var def = macro class { + private inline function new(loader) this = loader; + private var loader(get,never) : $loaderType; + inline private function get_loader() : $loaderType return this; +}; + //ECheckType var f = (123:Float);
\ No newline at end of file |