diff --git a/src/bindx/BindMacros.hx b/src/bindx/BindMacros.hx index 3007d78..6ca9c25 100644 --- a/src/bindx/BindMacros.hx +++ b/src/bindx/BindMacros.hx @@ -31,14 +31,20 @@ class BindMacros { macro static public function buildIBindable():Array { var type = Context.getLocalType(); if (processed.indexOf(type) > -1) { - return null; + return null; } processed.push(type); + + var classType = type.getClass(); + + if (classType.isInterface) { + return null; + } + if (bindingSignalProvider == null) { bindingSignalProvider = new bindx.BindSignal.BindSignalProvider(); } - - var classType = type.getClass(); + var fields = Context.getBuildFields(); var meta = classType.bindableMeta(); diff --git a/test/InheritanceTest.hx b/test/InheritanceTest.hx index aa2616d..884b4a1 100644 --- a/test/InheritanceTest.hx +++ b/test/InheritanceTest.hx @@ -41,13 +41,14 @@ class InheritanceTest extends BuddySuite { } interface IIBindable extends IBindable { - + @:bindable + var i(default, set):Int; } -@:bindable class BindableParent implements IIBindable { public function new() {} - + + @:bindable public var i:Int; }