// @target: es2015
interface I1 {
    i1P1: number;
    i1P2(): void;
}

interface I2 extends I1 {
    i2P1: string;
}

interface I3 {
    i2P1: string; // has a member from i2P1, but not from I1
}

interface I4 {
	one: number;
}

interface I5 {
	one: string;
}

class C1 implements I2 { // should be an error - it doesn't implement the members of I1
    public i2P1!: string;
}

declare var i2: I2;
var i1: I1;
declare var i3: I3;
i1 = i2;
i2 = i3; // should be an error - i3 does not implement the members of i1

var c1: C1;

declare var i4: I4;
declare var i5: I5;

i4 = i5; // should be an error
i5 = i4; // should be an error

