//// [tests/cases/compiler/duplicatePackage_relativeImportWithinPackage_scoped.ts] ////

=== /index.ts ===
import { use } from "@foo/bar/use";
>use : (o: import("@foo/bar").C) => void
>    : ^ ^^       ^^^^^^^^^^  ^^^^^^    

import { o } from "a";
>o : import("@foo/bar").C
>  : ^^^^^^^^^^^^^^^^^^^^

use(o);
>use(o) : void
>       : ^^^^
>use : (o: import("@foo/bar").C) => void
>    : ^ ^^       ^^^^^^^^^^  ^^^^^^    
>o : import("@foo/bar").C
>  : ^^^^^^^^^^^^^^^^^^^^

=== /node_modules/a/node_modules/@foo/bar/index.d.ts ===
export class C {
>C : C
>  : ^

    private x: number;
>x : number
>  : ^^^^^^
}

=== /node_modules/a/index.d.ts ===
import { C } from "@foo/bar";
>C : typeof C
>  : ^^^^^^^^

export const o: C;
>o : C
>  : ^

=== /node_modules/@foo/bar/use.d.ts ===
import { C } from "./index";
>C : typeof C
>  : ^^^^^^^^

export function use(o: C): void;
>use : (o: C) => void
>    : ^ ^^ ^^^^^    
>o : C
>  : ^

=== /node_modules/@foo/bar/index.d.ts ===
export class C {
>C : C
>  : ^

    private x: number;
>x : number
>  : ^^^^^^
}

