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

Cast error #1

Open
zxcpsd opened this issue Feb 3, 2022 · 1 comment
Open

Cast error #1

zxcpsd opened this issue Feb 3, 2022 · 1 comment

Comments

@zxcpsd
Copy link

zxcpsd commented Feb 3, 2022

Hey!

Looks like this part of code from quill_delta package:

Operation next([num length = double.infinity]) {
    if (_modificationCount != delta._modificationCount) {
      throw ConcurrentModificationError(delta);
    }
    
    ...
  
    return Operation.retain(length as int);
  }

causes type 'double' is not a subtype of type 'int' in type cast.

@Polemics
Copy link

Hey did you find a fix for this? I am a fellow type 'double' is not a subtype of type 'int' in type cast casualty here in the year 2023.

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

2 participants