Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply < doesn't accept a non-empty list #1354

Open
sorawee opened this issue Dec 31, 2023 · 0 comments
Open

apply < doesn't accept a non-empty list #1354

sorawee opened this issue Dec 31, 2023 · 0 comments

Comments

@sorawee
Copy link
Contributor

sorawee commented Dec 31, 2023

What version of Racket are you using?

8.11 [cs]

What program did you run?

#lang typed/racket

(: xs (Pairof Real (Listof Real)))
(define xs (list 1))
(apply < xs)

(This is the same issue as #1298, but with apply involved)

What should have happened?

It should type check.

If you got an error message, please include it here.

Type Checker: Bad arguments to function in `apply':
Domains: Real Real Real *
         Real 
Arguments:  (Pairof Real (Listof Real))
 in: (apply < xs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant