bluefireteam / ordered_set

A simple implementation for an ordered set
MIT License
20 stars 4 forks source link

not compatible with dart 3.0 #22

Closed lastmeta closed 1 year ago

lastmeta commented 1 year ago

after updating Dart sdk to 3.0 and ordered_set to 5.0.1 I still get this error

Launching lib\main.dart on sdk gphone x86 in debug mode...
main.dart:1
/C:/Users/<user>/AppData/Local/Pub/Cache/hosted/pub.dev/ordered_set-5.0.0/lib/ordered_set.dart:9:7: Error: 'Iterable' can't be used in both 'extends' and 'implements' clauses.
Try removing one of the occurrences.
class OrderedSet<E> extends IterableMixin<E> implements Iterable<E> {
      ^
Target kernel_snapshot failed: Exception
2

FAILURE: Build failed with an exception.

* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1201

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
lastmeta commented 1 year ago

for some reason it was still referencing 5.0.0, unsure why.