mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
25 lines
321 B
TypeScript
25 lines
321 B
TypeScript
'use client'
|
|
|
|
class C {
|
|
other: D | null
|
|
constructor() {
|
|
this.other = null
|
|
}
|
|
}
|
|
|
|
class D {
|
|
a: C
|
|
constructor(a: C) {
|
|
this.a = a
|
|
a.other = this
|
|
}
|
|
}
|
|
|
|
const objC = new C()
|
|
const objD = new D(objC)
|
|
|
|
export default function Page() {
|
|
// eslint-disable-next-line no-throw-literal
|
|
throw { objC, objD }
|
|
}
|