Skip to content

Commit

Permalink
Completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahnfelt committed Apr 18, 2023
1 parent 6ee898c commit 0fd7abb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/Inference.ff
Original file line number Diff line number Diff line change
Expand Up @@ -1008,9 +1008,10 @@ extend self: Inference {
let generics = selfType.map {
| TConstructor(_, _, gs) =>
// TODO: Needs constraints as well
// TODO: This drops the wrong number of type parameters - more environment needed
let methodGenerics = memberScheme.signature.generics.dropFirst(gs.size() + 1)
if(methodGenerics.isEmpty()) {""} else {"[" + methodGenerics.join(", ") + "]"}
| _ =>
| _ =>
""
}.else {""}
let selfIndent = selfType.map {_ => " "}.else {""}
Expand Down

0 comments on commit 0fd7abb

Please sign in to comment.