rokucommunity / bslint

A linter for BrightScript and BrighterScript.
MIT License
28 stars 15 forks source link

brighterscript incompatability: cannot instanatiate classes #25

Closed georgejecook closed 3 years ago

georgejecook commented 3 years ago
class Broke
end class

namespace tests
  @suite("DeeplinkProcessor tests")
  class DeeplinkProcessorTests extends tests.BaseTestSuite

    override function beforeEach()
      super.beforeEach()
      a = new Broke()
      processor = new company.lib.DeeplinkProcessor()
    end function

this is bogusly reporting an error: LINT1001 for both namespaced and non namespaced instantiation.

georgejecook commented 3 years ago

latest master does not work for me: nor m.bootstrap = new foo.lib.BootstrapSequence(m.global, m.nodeTop) mioc.setInstance("manifest", foo.lib.buildInfo.getManifestInfo()

My project has lots of overloaded namespaces, so I have lots of subnamespaces, functions and classes under foo and foo.xxx - I wonder if this is the issue.

georgejecook commented 3 years ago

This appears to be fixed now @philippe-elsass-deltatre thanks!