{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "f0a2a352-7250-4c87-b74b-4d629da60a3c", "metadata": {}, "outputs": [], "source": [ "struct Foo{T}\n", " a::T\n", " b::T\n", " Foo(a::T) where T = new{T}(a, a^2)\n", "end" ] }, { "cell_type": "code", "execution_count": 2, "id": "c0edc25b-03c6-4ab0-aef7-1609ae06cbbd", "metadata": {}, "outputs": [ { "data": { "text/html": [ "# 1 method for type constructor: