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

terminal.nim does not compile using --newruntime #11005

Closed
qqtop opened this issue Apr 11, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@qqtop
Copy link

commented Apr 11, 2019

Example

import terminal 
echo "hello newruntime"

Current Output

user666/.choosenim/toolchains/nim-#head/lib/pure/terminal.nim(904, 7) Error: type mismatch: got <PTerminal>
but expected one of: 
proc new[T](a: var owned(ref T))
proc new(t: typedesc): auto
proc new[T](a: var ref T; finalizer: proc (x: ref T) {.nimcall.})

expression: new result

###Compiled With

nim c -r  -f --newruntime --showAllMismatches:on  test201

Expected Output

hello newruntime
$ nim -v
Nim Compiler Version 0.19.9 [Linux: amd64]
Compiled at 2019-04-11

@nc-x

This comment has been minimized.

Copy link
Contributor

commented Apr 11, 2019

@qqtop AFAIK most of the stdlib has not been ported to the new runtime and will be ported after v0.20 is released. Currently the goal is for a relatively simple program (koch.nim) to compile and run properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.