Skip to content

Misprediction of predicate on substruct #205

Open
@samth

Description

@samth
#lang typed/racket #:no-optimize

(struct (A) foo ([x : A]))

(struct (A) baz foo ())

(define (f [i : Integer]) : (foo Integer)
  (baz i))

(if (baz? (f 1)) 1 2)

Behaves differently under optimization. Reported by Antonio Menezes Leitao on the mailing list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions