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

make rocksdb work with devel #32

Closed
wants to merge 1 commit into from
Closed

Conversation

ringabout
Copy link

The distinct types cannot accept a nil type on the devel branch, it must be explicitly written as distinct(nil)

ref nim-lang/Nim#20251

type Foo = distinct ptr int
# Before:
var x: Foo = nil
# After:
var x: Foo = Foo(nil)

The distinct types cannot accept a nil type on the devel branch, it must be explicitly written as `distinct(nil)`

ref nim-lang/Nim#20251


  ```nim
  type Foo = distinct ptr int
  # Before:
  var x: Foo = nil
  # After:
  var x: Foo = Foo(nil)
  ```
@jangko
Copy link
Contributor

jangko commented Feb 20, 2024

closed in favor of #35

@jangko jangko closed this Feb 20, 2024
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

Successfully merging this pull request may close these issues.

2 participants