From 1ac4bd5040ba0c9e7013800a92561fd152dd5665 Mon Sep 17 00:00:00 2001 From: Sameer Mahant <3286086+sameermahant@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:19:11 +0530 Subject: [PATCH] Fixed invalid_use_of_type_outside_library error related to dart Iterator class (#1554) Signed-off-by: Sameer Mahant <3286086+sameermahant@users.noreply.github.com> --- .../src/main/resources/templates/dart/DartLazyList.mustache | 2 +- .../smoke/generic_types/output/dart/lib/src/_lazy_list.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gluecodium/src/main/resources/templates/dart/DartLazyList.mustache b/gluecodium/src/main/resources/templates/dart/DartLazyList.mustache index 2e1475b51b..fd7882f577 100644 --- a/gluecodium/src/main/resources/templates/dart/DartLazyList.mustache +++ b/gluecodium/src/main/resources/templates/dart/DartLazyList.mustache @@ -23,7 +23,7 @@ import 'dart:ffi'; import 'dart:math'; -class _LazyIterator extends Iterator { +class _LazyIterator implements Iterator { final List list; final int step; final int length; diff --git a/gluecodium/src/test/resources/smoke/generic_types/output/dart/lib/src/_lazy_list.dart b/gluecodium/src/test/resources/smoke/generic_types/output/dart/lib/src/_lazy_list.dart index 40bdadc98d..9884672b74 100644 --- a/gluecodium/src/test/resources/smoke/generic_types/output/dart/lib/src/_lazy_list.dart +++ b/gluecodium/src/test/resources/smoke/generic_types/output/dart/lib/src/_lazy_list.dart @@ -1,6 +1,6 @@ import 'dart:ffi'; import 'dart:math'; -class _LazyIterator extends Iterator { +class _LazyIterator implements Iterator { final List list; final int step; final int length;