hylo icon indicating copy to clipboard operation
hylo copied to clipboard

The Hylo programming language

Results 184 hylo issues
Sort by recently updated
recently updated
newest added

On requirements-machine branch: ```swift public extension MutableCollection { public fun apply_each(_ f: [E](inout Self.Element)->Void) inout -> Void { for inout e in self { f(&e) } } } ```

On requirements-machine branch: ``` public typealias Vec2 = {x: Float64, y: Float64} fun f(_ v: Vec2) -> Bool { v.x > v.y } // error: type 'Vec2' has no member...

I did this to see how things worked. ```swift type Inner: Movable, Deinitializable { var value: Int public fun id() { print(Int(bit_pattern: pointer[to: self].raw), terminator: "") print(": ", terminator: "")...

on requirements-machine ``` extension Optional where T: Movable { public fun postfix!() sink -> T { if let r: T = self { return r } else { fatal_error("force unwrapping...

I came around a supposedly wrongly emitted compiler error when compiling the following code: ```hylo type A: Deinitializable { public let x: Int public memberwise init public type B :...

On requirements-machine branch: ``` public fun force_unwrap(x: sink Optional) -> T { match x { // error: incompatible types '{}' and 'T' // let r: T { return r }...

I don't know why this compiles. I also don't know why it prints 0 instead of -1. ``` type X: Deinitializable { public var a: Int public memberwise init public...

With the requirement machine branch, this fails ``` conformance Buffer: Collection { public typealias Position = Int public fun start_position() -> Int { 0 } public fun end_position() -> Int...

At f6ee33caa, this should compile: ``` extension Array { init(foo: Int) { self = Array() // error: type 'Element' does not conform to trait 'SemiRegular' } } ```