borgo icon indicating copy to clipboard operation
borgo copied to clipboard

Naming a type "Sender" causes panic

Open apatil opened this issue 2 years ago • 1 comments

The following code:

use fmt;

enum Sender {
  Sender
}

fn main() {
    fmt.Println("Hello")
}

causes a panic here: https://github.com/borgo-lang/borgo/blob/main/compiler/src/codegen.rs#L2061

More generally, do you want little issue reports like this at this stage of Borgo's development?

apatil avatar Aug 15 '23 19:08 apatil

Hey sorry for getting back so late! I have a bunch of issues like this one that I need to fix, feel free to report any problem you find, I'd appreciate that :)

alpacaaa avatar Sep 08 '23 07:09 alpacaaa