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
The following issue appears in flintlang/flint-2/master and returns a fatal error. When writing a function that operates on a struct, the use of a default parameter causes the code generation to fail. Note that this issue only appears when compiling with libra as the target.
structSomeStruct{public var width:Int// Works
public func increaseWidth(arg:Int){self.width = self.width + arg
}// Also works (so it does not seem to be an issue of having access to self)
public func increaseWidth(arg:Int){}// Does not work (using an int literal in place of width has the same effect)// replacing width with self.width also does not work
public func increaseWidth(arg:Int = width){}}
The text was updated successfully, but these errors were encountered:
The following issue appears in flintlang/flint-2/master and returns a fatal error. When writing a function that operates on a struct, the use of a default parameter causes the code generation to fail. Note that this issue only appears when compiling with libra as the target.
The text was updated successfully, but these errors were encountered: