HaxeFoundation / intellij-haxe

Haxe plugin for IntelliJ Platform based IDEs (IDEA, Android-Studio)
http://intellij-haxe.org
Apache License 2.0
219 stars 100 forks source link

Abstract variable type problem #1179

Closed barisyild closed 2 months ago

barisyild commented 3 months ago
class Test {
    public static function main() {
        var a = (1 : AbstractInt);
        a = a.multiply();
        trace(a);
    }
}

abstract AbstractInt(Int) from Int to Int
{
    public inline function multiply():AbstractInt
    {
        return this + 1;
    }
}

image image