injectable icon indicating copy to clipboard operation
injectable copied to clipboard

Named import is not used

Open ResoDev opened this issue 3 years ago • 0 comments

Hello!

I'm using the kt_dart package and the generated code contains a named import

import 'package:kt_dart/kt.dart' as kt_dart;

This would be fine, however, classes from the kt_dart library aren't prefixed with kt_dart which effectively makes them not imported.

For instance, here's one factory which is missing the kt_dart prefix for the KtList generic argument.

gh.factory<project_name.ConfigControllerService<KtList<MeterDto>>>(
      () => MetersConfigControllerService(get<Dio>()),
      instanceName: 'MetersConfigControllerService');

I've only encountered this issue with the kt_dart package so far.

ResoDev avatar Sep 23 '20 07:09 ResoDev