summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/multimethod-diamond/package.py
blob: d8cc6fcee115336ef96281d9cc45803d796c0015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

import spack.pkg.builtin.mock.multimethod_diamond_parent as mp
import spack.pkg.builtin.mock.multimethod_inheritor as mi


class MultimethodDiamond(mi.MultimethodInheritor, mp.MultimethodDiamondParent):
    """This package is designed for use with Spack's multimethod test.
       It has a bunch of test cases for the @when decorator that the
       test uses.
    """

    @when('@4.0')
    def diamond_inheritance(self):
        return 'subclass'