haxetink / tink_macro

The macro toolkit
MIT License
57 stars 17 forks source link

haxe4 rc5 compile error #27

Closed sonygod closed 4 years ago

sonygod commented 4 years ago
import js.lib.Promise;
import tink.await.Await;
import tink.core.*;
import Wx;

class Main  {
    static function main() {
        trace("Hello, world!");

        getU();
    }

    @async public static function getU() {
        return @await Wx.getUserInfo("xx");
    }
}

D:\project\sgNode\hxNode>build.hxml C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:48: characters 20-30 : Class has no field fatalError C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:24: characters 17-27 : Class has no field currentPos C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:40: characters 13-22 : Null should be haxe.macro.Position C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:40: characters 13-22 : { methodName : String, lineNumber : Int, fileName : String, ?customParams : Null<Array>, className : String } has no field file C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:40: characters 13-22 : For function argument 'pos' C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:38: lines 38-44 : Void should be Dynamic C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Exprs.hx:352: characters 25-31 : Class has no field typeof C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:61: characters 30-36 : String should be Null C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:61: characters 30-36 : For optional function argument 'code' C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Exprs.hx:296: characters 20-28 : Class has no field makeExpr C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:19: characters 36-42 : Class has no field typeof C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:29: characters 20-26 : Class has no field bounce C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:51: characters 33-38 : String should be Null C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:51: characters 33-38 : For optional function argument 'code' C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Positions.hx:56: characters 13-20 : Class has no field warning C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:18: characters 22-29 : Class has no field getType C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:173: characters 37-43 : Class has no field follow C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:90: characters 49-68 : Class has no field applyTypeParameters C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:95: characters 26-36 : Class has no field currentPos C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:125: characters 20-25 : Class has no field unify C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:129: characters 19-24 : Class has no field unify C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:130: characters 32-40 : haxe.macro.Type has no field toString C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:130: characters 64-72 : haxe.macro.Type has no field toString C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:130: characters 32-40 : haxe.macro.Type has no field toString C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:130: characters 64-72 : haxe.macro.Type has no field toString C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:130: characters 30-74 : String should be Null C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:130: characters 30-74 : For optional function argument 'code' C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:225: characters 36-76 : String should be Null C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:225: characters 36-76 : For optional function argument 'code' C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:242: characters 29-41 : Class has no field getLocalType C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:257: characters 28-36 : haxe.macro.Type has no field toString C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Types.hx:257: characters 43-51 : haxe.macro.Type has no field toString C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Exprs.hx:53: characters 23-33 : Class has no field currentPos C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Exprs.hx:69: characters 21-32 : Class has no field getPosInfos C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Constructor.hx:106: characters 63-71 : haxe.macro.Type has no field getClass C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Constructor.hx:106: characters 34-86 : You can't iterate on a Dynamic value, please specify Iterator or Iterable C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Constructor.hx:118: characters 32-46 : Class has no field storeTypedExpr C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Constructor.hx:127: characters 28-37 : haxe.macro.VarAccess should be Null C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/Constructor.hx:127: characters 28-37 : For function argument 'e' C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/MacroApi.hx:51: characters 31-41 : Class has no field currentPos C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/MacroApi.hx:87: characters 28-48 : Class has no field onMacroContextReused C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/ClassBuilder.hx:23: characters 24-37 : Class has no field getLocalClass C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/ClassBuilder.hx:26: characters 24-38 : Class has no field getBuildFields C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/ClassBuilder.hx:68: characters 34-46 : Class has no field getTypedExpr C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/ClassBuilder.hx:70: characters 27-36 : You can't iterate on a Dynamic value, please specify Iterator or Iterable C:\HaxeToolkit\haxe\lib\tink_macro/git/src/tink/macro/ClassBuilder.hx:116: characters 17-24 : Class has no field warning C:\HaxeToolkit\haxe\lib\tink_await/git/src/tink/await/AsyncField.hx:83: characters 49-59 : Class has no field currentPos C:\HaxeToolkit\haxe\lib\tink_await/git/src/tink/await/AsyncField.hx:352: characters 38-43 : Class has no field error C:\HaxeToolkit\haxe\lib\tink_await/git/src/tink/await/AsyncField.hx:361: characters 37-42 : Class has no field error C:\HaxeToolkit\haxe\lib\tink_await/git/src/tink/await/Await.hx:57: characters 25-30 : Class has no field error C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/syntaxhub/FrontendContext.hx:90: characters 24-36 : Class has no field getClassPath C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/syntaxhub/FrontendContext.hx:90: characters 16-38 : You can't iterate on a Dynamic value, please specify Iterator or Iterable C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/syntaxhub/FrontendContext.hx:110: characters 20-30 : Class has no field currentPos C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/syntaxhub/FrontendContext.hx:116: characters 17-24 : Class has no field getType C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/syntaxhub/FrontendContext.hx:141: characters 15-27 : Class has no field defineModule C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/syntaxhub/FrontendContext.hx:143: characters 17-41 : Class has no field registerModuleDependency C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/SyntaxHub.hx:29: characters 13-27 : Class has no field onTypeNotFound C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/SyntaxHub.hx:30: characters 14-31 : Class has no field addGlobalMetadata C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/SyntaxHub.hx:36: characters 22-34 : Class has no field getLocalType C:\HaxeToolkit\haxe\lib\tink_syntaxhub/git/src/tink/SyntaxHub.hx:38: characters 14-19 : Unknown identifier : TInst

kevinresol commented 4 years ago

Can you post a self-contained snippet please?

sonygod commented 4 years ago

I think it's already fixed.