| 821 | |
| 822 | it('should disallow writing to signals within computed', () => { |
| 823 | @Component({ |
| 824 | template: '{{comp()}}', |
| 825 | }) |
| 826 | class WriteComputed { |
| 827 | sig = signal(0); |
| 828 | comp = computed(() => { |
| 829 | this.sig.set(this.sig() + 1); |
| 830 | return this.sig(); |
| 831 | }); |
| 832 | } |
| 833 | |
| 834 | const fixture = TestBed.createComponent(WriteComputed); |
| 835 |