FStarLang / FStarLang/FStar

b2t not kicking in

Open
#2,015 5 comments 0 reactions 0 assignees View on GitHub
component/typechecker kind/bug kind/discussion
Dominant language
F*
Stars
3.1k
Forks
266
Avg merge
21h 1m
Merged PRs (30d)
54

Description

```fstar
val id : 'a -> 'a
let id x = x

let test5 : Type = id true
```
```
File.fst(6,22-6,26): (Error 54) bool is not a subtype of the expected type Type
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the provided example in File.fst, especially the `let test5 : Type = id true` expression, and inspect the type-checking path for the reported Error 54. The issue does not name relevant source files or tests; done would require determining the intended b2t behavior and making the example typecheck without that error.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.