You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say there is some class Foo with a constructor. It may or may not have any arguments, the only thing matter it should be accessible from class Bar. If Bar has property let Foo: AnyTypeDoesNotMatter then any attempt to initialize an instance of class Foo will be considered by compiler as an attempt to access property self.Foo
will fail at line let foo = Foo() with error "cannot call value of non-function type 'Int'".
(Exact error may depends on context)
disclaimer: I'm more than aware that variable names should starts with lowercased letter. But if it compiles, it's valid. I've faced this issue when found out dependency conflict was caused by the fact that one of my libraries has class Foo and second one uses public extension of Bar with unconventional names for computable property var Foo. Compile error was irrelevant because I was not aware of any extensions for that matter.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 4a7afb191de74a1422b15e5e93efa6fd
relates to:
Issue Description:
Let's say there is some
class Foo
with a constructor. It may or may not have any arguments, the only thing matter it should be accessible fromclass Bar
. IfBar
has propertylet Foo: AnyTypeDoesNotMatter
then any attempt to initialize an instance ofclass Foo
will be considered by compiler as an attempt to access propertyself.Foo
For example:
will fail at line
let foo = Foo()
with error "cannot call value of non-function type 'Int'".(Exact error may depends on context)
disclaimer: I'm more than aware that variable names should starts with lowercased letter. But if it compiles, it's valid. I've faced this issue when found out dependency conflict was caused by the fact that one of my libraries has
class Foo
and second one usespublic extension
ofBar
with unconventional names for computable propertyvar Foo
. Compile error was irrelevant because I was not aware of any extensions for that matter.The text was updated successfully, but these errors were encountered: